package cn.wygandwdn.client;

import cn.wygandwdn.client.controller.HelloContorller;
import cn.wygandwdn.core.annotation.ServiceScan;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: WYG
 * @time: 2021/10/31 20:41
 */
@ServiceScan
public class TestClient {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(TestClient.class);
        HelloContorller bean = applicationContext.getBean(HelloContorller.class);
        System.out.println(bean.getName("1", "2"));
    }
}
